#ifndef __LIGHT_SENSOR_H
#define __LIGHT_SENSOR_H
#include "my_struct.h"
#define D_AD_VALUE      -10
//中间传感器左右偏移的阈值
#define LEFT_THERSH 3050
#define RIGHT_THERSH 2640
//左右传感器的峰值
#define LEFT_MAX 3400
#define RIGHT_MAX 3439
//定义最大值，悬空阈值
#define HIGH_SENSOR_VALUE  3400
#define LEFT_error_VALUE   300
#define RIGHT_error_VALUE  -500
//左侧最大差值
#define LEFT_MAX_ERROR  -500
//右侧最大差值
#define RIGHT_MAX_ERROR  550

int Light_Sensor_GetErrorValue(light_values* tracing);
#endif // !__LIGHT_SENSOR_H
